package com.ruoyi.tb.lmt.service;

import com.ruoyi.tb.lmt.domain.vo.TbMutualInspectionVo;
import com.ruoyi.tb.lmt.domain.bo.TbMutualInspectionBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 互检主表Service接口
 *
 * @author ruoyi
 * @date 2024-01-04
 */
public interface ITbMutualInspectionService {

    /**
     * 查询互检主表
     */
    TbMutualInspectionVo queryById(Long id);

    /**
     * 查询互检主表列表
     */
    TableDataInfo<TbMutualInspectionVo> queryPageList(TbMutualInspectionBo bo, PageQuery pageQuery);

    /**
     * 查询互检主表列表
     */
    List<TbMutualInspectionVo> queryList(TbMutualInspectionBo bo);

    /**
     * 新增互检主表
     */
    Boolean insertByBo(TbMutualInspectionBo bo);

    /**
     * 修改互检主表
     */
    Boolean updateByBo(TbMutualInspectionBo bo);

    /**
     * 校验并批量删除互检主表信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    TbMutualInspectionBo selectByBo(TbMutualInspectionBo bo);

    String updateWorkNeedByBo(Long mutualId);

    TableDataInfo<TbMutualInspectionVo> selectByMutual(String id, String lmtType, String lmtNumber, String status, String repairChar, String planName, String workGroup, String workUser, PageQuery pageQuery);

}
